#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
  int grade;
  cout << "Please Input the grade :";
  cin >> grade;
  string finalgrade;
  finalgrade = (grade > 90)
                   ? "high"
                   : (grade > 70) ? "pass"
                                  : (grade > 60) ? "Low pass"
                                                 : "fail"; //条件运算符的嵌套
  cout << finalgrade;

  if (grade <= 90) {
    if (grade <= 75) {
      if (grade > 60) {
        cout << "low pass" << endl;
      } else {
        cout << "fail" << endl;
      }
    } else {
      cout << "pass" << endl;
    }
  } else {
    cout << "High pass" << endl;
  }
  return 0;
}